<?php get_header(); ?>
	<div id="primary" class="hfeed">
		<?php if ( have_posts() ) the_post(); ?>
		<h1 class="page-title">
			<?php if ( is_day() ) : ?>
				<?php printf( __( 'Daily Archives: <span>%s</span>', '1095' ), get_the_date() ); ?>
			<?php elseif ( is_month() ) : ?>
				<?php printf( __( 'Monthly Archives: <span>%s</span>', '1095' ), get_the_date('F Y') ); ?>
			<?php elseif ( is_year() ) : ?>
				<?php printf( __( 'Yearly Archives: <span>%s</span>', '1095' ), get_the_date('Y') ); ?>
			<?php else : ?>
				<?php _e( 'Blog Archives', '1095' ); ?>
			<?php endif; ?>
		</h1>

		<?php
			/* Since we called the_post() above, we need to
			 * rewind the loop back to the beginning that way
			 * we can run the loop properly, in full.
			 */
			rewind_posts();
		
			/* Run the loop for the archives page to output the posts.
			 * If you want to overload this in a child theme then include a file
			 * called loop-archives.php and that will be used instead.
			 */
			 get_template_part( 'loop', 'archive' );
		?>

	</div><!--END #primary .hfeed-->
	
<?php get_footer(); ?>
